/**
 * @param icon 菜单图标
 * @param name 菜单名称
 * @param toPath  路由path
 * @param jurisdiction  操作权限
 * @param children  子菜单
 */
export interface menu_item {
    icon: string,
    iconIs: string,
    name: string,
    toPath: string,
    jurisdiction: boolean,
    children?: Array<menu_item>,
}

//系统管理菜单项
const sysManage: Array<menu_item> = [
    {
        icon: require('../assets/img/menu/xitongguanli.png'),
        iconIs: require('../assets/img/menu/xitongguanliIs.png'),
        name: "用户管理",
        toPath: "/main/UserAdmin",
        jurisdiction: true
    }, 
]//系统管理菜单项
const musicManage: Array<menu_item> = [
    {
        icon: require('../assets/img/menu/xitongguanli.png'),
        iconIs: require('../assets/img/menu/xitongguanliIs.png'),
        name: "音乐上传",
        toPath: "/main/UploadMusic",
        jurisdiction: true
    }, {
        icon: require('../assets/img/menu/yygl.png'),
        iconIs: require('../assets/img/menu/yyglIs.png'),
        name: "音乐管理",
        toPath: "/main/MusicAdmin",
        jurisdiction: true
    }, {
        icon: require('../assets/img/menu/menu.png'),
        iconIs: require('../assets/img/menu/menuIs.png'),
        name: "歌单管理",
        toPath: "/main/MusicMenuAdmin",
        jurisdiction: true
    }
]
export const menuList: Array<menu_item> = [
    {
        icon: require('../assets/img/menu/home.png'),
        iconIs: require('../assets/img/menu/homeIs.png'),
        name: "首页",
        toPath: "/main/home",
        jurisdiction: true
    }, {
        icon: require('../assets/img/menu/xitongguanli.png'),
        iconIs: require('../assets/img/menu/xitongguanliIs.png'),
        name: "用户管理",
        toPath: "",
        jurisdiction: true,
        children:sysManage
    }, {
        icon: require('../assets/img/menu/dingdan.png'),
        iconIs: require('../assets/img/menu/dingdanIs.png'),
        name: "音乐管理",
        toPath: "",
        jurisdiction: true,
        children:musicManage
    },  
]


